package com.runvp.service.biz.service.impl;

import com.runvp.common.core.text.Convert;
import com.runvp.service.biz.domain.BizIndexTj;
import com.runvp.service.biz.mapper.BizIndexTjMapper;
import com.runvp.service.biz.service.IBizIndexTjService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 系统配置Service业务层处理
 * 
 * @author runvp
 * @date 2022-11-19
 */
@Service
public class BizIndexTjServiceImpl implements IBizIndexTjService {
    @Autowired
    private BizIndexTjMapper bizIndexTjMapper;


    /**
     * 查询系统配置
     * 
     * @param id 系统配置主键
     * @return 系统配置
     */
    @Override
    public BizIndexTj selectBizIndexTjById(Long id) {
        return bizIndexTjMapper.selectBizIndexTjById(id);
    }

    /**
     * 查询系统配置列表
     * 
     * @param bizIndexTj 系统配置
     * @return 系统配置
     */
    @Override
    public List<BizIndexTj> selectBizIndexTjList(BizIndexTj bizIndexTj) {
        return bizIndexTjMapper.selectBizIndexTjList(bizIndexTj);
    }
    /**
     * 首页统计
     * @param bizIndexTj
     * @return list
     */
    @Override
    public List<BizIndexTj> indexTj(BizIndexTj bizIndexTj){
        return bizIndexTjMapper.indexTj(bizIndexTj);
    }
    /**
     * 首页统计
     */
    @Override
    public BizIndexTj all(BizIndexTj bizIndexTj){
        return bizIndexTjMapper.all(bizIndexTj);
    }

    /**
     * 营收统计
     */
    @Override
    public List<BizIndexTj> revenue(BizIndexTj bizIndexTj){
        return bizIndexTjMapper.revenue(bizIndexTj);
    }
    /**
     * 趋势统计
     */
    @Override
    public List<BizIndexTj> trend(BizIndexTj bizIndexTj){
        return bizIndexTjMapper.trend(bizIndexTj);
    }
    /**
     * 近几日订单走势
     */
    @Override
    public List<BizIndexTj> nearDays(BizIndexTj bizIndexTj){
        return bizIndexTjMapper.nearDays(bizIndexTj);
    }
    /**
     * 今日新增用户
     * @param day
     * @return list
     */
    @Override
    public List<BizIndexTj> nowdayNewAddUser(String day){
        return bizIndexTjMapper.nowdayNewAddUser(day);
    }
    /**
     * 今日设备在线情况
     * @param bizIndexTj
     * @return list
     */
    @Override
    public List<BizIndexTj> nowdayDeviceOnLine(BizIndexTj bizIndexTj){
        return bizIndexTjMapper.nowdayDeviceOnLine(bizIndexTj);
    }
    /**
     * 新增系统配置
     * 
     * @param bizIndexTj 系统配置
     * @return 结果
     */
    @Override
    public int insertBizIndexTj(BizIndexTj bizIndexTj) {
        return bizIndexTjMapper.insertBizIndexTj(bizIndexTj);
    }

    /**
     * 修改系统配置
     * 
     * @param bizIndexTj 系统配置
     * @return 结果
     */
    @Override
    public int updateBizIndexTj(BizIndexTj bizIndexTj) {
        return bizIndexTjMapper.updateBizIndexTj(bizIndexTj);
    }

    /**
     * 批量删除系统配置
     * 
     * @param ids 需要删除的系统配置主键
     * @return 结果
     */
    @Override
    public int deleteBizIndexTjByIds(String ids) {
        return bizIndexTjMapper.deleteBizIndexTjByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除系统配置信息
     * 
     * @param id 系统配置主键
     * @return 结果
     */
    @Override
    public int deleteBizIndexTjById(Long id) {
        return bizIndexTjMapper.deleteBizIndexTjById(id);
    }
}
